home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Apps / ArchiveUtils / nx_arc / arc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-20  |  3.0 KB  |  104 lines

  1. /*
  2.  * $Log:    arc.h,v $
  3.  * Revision 1.3  88/04/11  17:42:21  hyc
  4.  * nothing much, just run thru indent...
  5.  * 
  6.  * Revision 1.2  88/04/11  17:40:24  hyc
  7.  * added flag for squashing, got rid of EXTERN macro.
  8.  * 
  9.  * Revision 1.1  88/04/11  17:36:04  hyc
  10.  * Initial revision
  11.  * 
  12.  * Revision 1.2  87/12/19  03:58:14  hyc
  13.  * #define BSD instead of MTS, make the image mode flag ndef'ed to MSDOS
  14.  * instead of def'ed to MTS...
  15.  * 
  16.  * Revision 1.1  87/12/19  03:54:37  hyc
  17.  * Initial revision
  18.  * 
  19.  * Revision 1.4  87/08/13  17:02:56  hyc
  20.  * Run thru the indent program...
  21.  *  Revision 1.3  87/07/21  11:45:29  hyc *** empty log
  22.  * message ***
  23.  * 
  24.  * Revision 1.2  87/07/21  06:30:26  hyc modified for unix
  25.  * 
  26.  */
  27.  
  28. #undef  MSDOS            /* MSDOS machine */
  29. #define BSD            /* BSD4.2 or 4.3 */
  30. #undef    MTS            /* MTS or 370(?) */
  31.  
  32. #ifdef BSD
  33. #include <ctype.h>
  34. #define INT short
  35. #define LONG long
  36. #define envfind getenv
  37. #endif
  38.  
  39. #ifdef MTS
  40. #define INT short
  41. #define LONG long
  42. #define rindex strrchr
  43. #define index strchr
  44. #define envfind getenv
  45. #undef  USEGFINFO        /* define this to use GFINFO for directory */
  46. #define USECATSCAN        /* scanning, else use CATSCAN/FILEINFO... */
  47. #endif
  48.  
  49. #ifdef MSDOS
  50. #define INT int
  51. #define LONG long
  52. #endif
  53.  
  54. /*
  55.  * ARC - Archive utility - ARC Header
  56.  * 
  57.  * Version 2.16, created on 10/24/86 at 14:54:17
  58.  * 
  59.  * (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  60.  * 
  61.  * By:  Thom Henderson
  62.  * 
  63.  * Description: This is the header file for the ARC archive utility.  It defines
  64.  * global parameters and the references to the external data.
  65.  * 
  66.  * 
  67.  * Language: Computer Innovations Optimizing C86
  68.  */
  69.  
  70. #ifndef DONT_DEFINE        /* Defined by arcdata.c */
  71. #include "arcs.h"
  72.  
  73. extern INT      keepbak;    /* true if saving the old archive */
  74. #ifndef    MSDOS
  75. extern INT      image;        /* true to suppress CRLF/LF x-late */
  76. #endif
  77. #ifdef MTS
  78. extern char     sepchr[2];    /* Shared file separator, default = ':' */
  79. extern char     tmpchr[2];    /* Temporary file prefix, default = '-' */
  80. #endif
  81. extern INT      warn;        /* true to print warnings */
  82. extern INT      note;        /* true to print comments */
  83. extern INT      bose;        /* true to be verbose */
  84. extern INT      nocomp;        /* true to suppress compression */
  85. extern INT      overlay;    /* true to overlay on extract */
  86. extern INT      kludge;        /* kludge flag */
  87. extern char    *arctemp;    /* arc temp file prefix */
  88. extern char    *password;    /* encryption password pointer */
  89. extern INT      nerrs;        /* number of errors encountered */
  90.  
  91. extern char     hdrver;        /* header version */
  92.  
  93. extern FILE    *arc;        /* the old archive */
  94. extern FILE    *new;        /* the new archive */
  95. extern char     arcname[100];    /* storage for archive name */
  96. extern char     bakname[100];    /* storage for backup copy name */
  97. extern char     newname[100];    /* storage for new archive name */
  98. extern unsigned INT arcdate;    /* archive date stamp */
  99. extern unsigned INT arctime;    /* archive time stamp */
  100. extern unsigned INT olddate;    /* old archive date stamp */
  101. extern unsigned INT oldtime;    /* old archive time stamp */
  102. extern INT      dosquash;    /* squash instead of crunch */
  103. #endif                /* DONT_DEFINE */
  104.